<template>
  <div class="home">
    <div v-if="$store.state.isLogin === true">
      已经登陆！
    </div>
    <div v-else>
      尚未登陆，请前往登陆<router-link to="/login">Login</router-link>
    </div>
    <img alt="Vue logo" src="../assets/logo.png">
    <HelloWorld msg="Welcome to Your Vue.js App"/>
    <TestAPI />  
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'
// import TestAPI from '@/components/TestAPI.vue'
export default {
  name: 'HomeView',
  components: {
    HelloWorld
  }
}
</script>

<style scoped>
.home{
  position:relative;
  }
</style>